﻿using MengLin.OOP.DesignPattern.WMS_LC4.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.WMS_LC4.Implements.HardwarePlatform
{
    /// <summary>
    /// 没有硬件支撑的大气气压力传感器
    /// </summary>
    public class TestBarometricPressureSensor : IBarometricPressureSensor
    {
        /// <summary>
        /// 读取气压
        /// </summary>
        /// <returns></returns>
        public double Read()
        {
            Console.WriteLine($"{nameof(TestBarometricPressureSensor)} Read Barometric Pressure");
            double currentBarometricPressure = 36;//假设当前大气压力
            return currentBarometricPressure;
        }
    }
}
